package com.atguigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.File;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author cyt
 * @create 2020-06-01 15:52
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "edu_comment")
public class EduComment implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private String courseId;

    /**
     * 讲师id
     */
    @TableField(value = "teacher_id")
    private String teacherId;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    private String memberId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)

    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_COURSE_ID = "course_id";

    public static final String COL_TEACHER_ID = "teacher_id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_CONTENT = "content";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}